package com.gccloud.design.common;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author wu.yumin
 * @version 1.0.0
 * @Description API entity
 * @date 2021/6/10 20:06
 */
@Data
public class SdApiDefineComm implements Serializable {

    private static final long serialVersionUID = 7035718102652267592L;

    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty("API标识")
    private Long apiId;

    @ApiModelProperty("API标识")
    private String apiCode;

    @ApiModelProperty("API名称")
    private String apiName;

    @ApiModelProperty("API版本")
    private String apiVersion;

    @ApiModelProperty("API状态")
    private String apiStatus;

    @ApiModelProperty("API服务主机地址")
    private String apiIp;

    @ApiModelProperty("API提供方")
    private String apiProvider;

    @ApiModelProperty("API消费方")
    private String apiConsumer;

    @ApiModelProperty("API类型")
    private String apiType;

    @ApiModelProperty("API分类")
    private String apiClass;

    @ApiModelProperty("归属服务对象ID")
    private Integer relaSrId;

    @ApiModelProperty("归属服务对象类型")
    private String relaSrType;

    @ApiModelProperty("是否核心API")
    private String isCore;

    @ApiModelProperty("API目录标识")
    private Integer catalogId;

    @ApiModelProperty("API目录编码")
    private String catalogCode;

    @ApiModelProperty("API目录名称")
    private String catalogName;

    @ApiModelProperty("创建人标识")
    private String createdId;

    @ApiModelProperty("创建人名称")
    private String createdName;

    @ApiModelProperty("创建时间")
    private String createdTime;

    @ApiModelProperty("修改人标识")
    private String modifiedId;

    @ApiModelProperty("修改名称")
    private String modifiedName;

    @ApiModelProperty("修改时间")
    private String modifiedTime;

    @ApiModelProperty("编排包标识")
    private String bisopId;

    @ApiModelProperty("编排包编码")
    private String bisopCode;

    @ApiModelProperty("备注说明")
    private String comments;

    @ApiModelProperty("分片标识")
    private Integer shardingId;

    @ApiModelProperty("API基础路径")
    private String apiPath;

    @ApiModelProperty("HTTP请求动作")
    private String apiAction;

    @ApiModelProperty("API服务协议")
    private String apiProtocol;

    @ApiModelProperty("API超时调用时长(毫秒)")
    private Integer callTimeOut;

    @ApiModelProperty("API调用是否重试")
    private String isTry;

    @ApiModelProperty("API调用重复次数")
    private Integer tryCount;

    @ApiModelProperty("API调用重复间隔")
    private Integer tryInterval;

}
